package com.wave2.shadow.persistence;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "contacts")
public class Contacts {

	public Contacts(){
		
	}
	
	@Id
	@Column(name = "EMAIL")
	private String email;
	
	@Column(name = "FIRSTNAME")
	private String firstname;	

	@Column(name = "LASTNAME")
	private String lastname;
	
	@Column(name = "PHONE1")
	private String phone1;
	
	@Column(name = "PASS")
	private String pass;

	@Override
	public String toString(){
		return this.email + "," + this.firstname + "," + this.lastname + "," + this.phone1 + "," + this.pass; 
	}
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getPhone1() {
		return phone1;
	}

	public void setPhone1(String phone1) {
		this.phone1 = phone1;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}	
}
